package com.lcxsoft.userservice.service.impl;

import com.lcxsoft.userservice.entity.School;
import com.lcxsoft.userservice.mapper.SchoolMapper;
import com.lcxsoft.userservice.service.SchoolService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lcx
 * @since 2022-01-16
 */
@Service
public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> implements SchoolService {

    @Resource
    private SchoolMapper schoolMapper;

    @Override
    public String findSchoolIdByDormitoryId(String dormitoryId) {
        return schoolMapper.findSchoolIdByDormitoryId(dormitoryId);
    }
}
